package com.example.book_test.adapter;

import org.springframework.beans.factory.annotation.Autowired;

public class Slf4jLog4jAdapter implements Slf4jApi{
    private Log4jApi log4jApi;

    public Slf4jLog4jAdapter(Log4jApi log4jApi) {
        this.log4jApi = log4jApi;
    }

    @Override
    public void log(String message) {
        log4jApi.log(message);
    }
}
